package com.deyuanyun.pic.eqpt.mapper;

import com.deyuanyun.pic.eqpt.domain.ExtemalUse;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface ExtemalUseMapper {
    int deleteByPrimaryKey(String id);

    int insert(ExtemalUse record);

    int insertSelective(ExtemalUse record);

    ExtemalUse selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ExtemalUse record);

    int updateByPrimaryKey(ExtemalUse record);
    /**
     * Bill.li  获取外部借用设备数据
     * */
    List<ExtemalUse> getExternally(HashMap<String, Object> param);
    /**
     * Bill.li  查询外部借用设备数据
     * */
    HashMap<String,Object> queryExternally(HashMap<String, Object> map);
    /**
     * Bill.li  添加外部借用设备数据
     * */
    void addExternally(ExtemalUse record);
    /**
     * Bill.li  编辑更新外部借用设备数据
     *
     * @param param*/
    void updateExternally(ExtemalUse param);
    /**
     * Bill.li  删除外部借用设备数据
     * */
    boolean delExternally(HashMap<String, Object> param);
    
    List<Map> getTask(HashMap<String, Object> pram);
    
    String findEquipment(@Param("id") String id);
}